package luj.tool.jnproxyan.proxy.network.socks.request;

import io.netty.handler.codec.socksx.SocksVersion;
import io.netty.handler.codec.socksx.v5.Socks5AuthMethod;
import io.netty.handler.codec.socksx.v5.Socks5CommandType;

import java.util.Set;

/**
 * 通道建立请求
 */
public class RequestBody {

  public SocksVersion getVersion() {
    return _version;
  }

  public void setVersion(SocksVersion version) {
    _version = version;
  }

  public Set<Socks5AuthMethod> getMethods() {
    return _methods;
  }

  public void setMethods(Set<Socks5AuthMethod> methods) {
    _methods = methods;
  }

  public Socks5CommandType getCmd() {
    return _cmd;
  }

  public void setCmd(Socks5CommandType cmd) {
    _cmd = cmd;
  }

  public String getTargetHost() {
    return _targetHost;
  }

  public void setTargetHost(String targetHost) {
    _targetHost = targetHost;
  }

  public int getTargetPort() {
    return _targetPort;
  }

  public void setTargetPort(int targetPort) {
    _targetPort = targetPort;
  }

  private SocksVersion _version;
  private Set<Socks5AuthMethod> _methods;

  private Socks5CommandType _cmd;
  private String _targetHost;
  private int _targetPort;
}
